using System;
using FreshCommonUtility.Dapper;
using WeChatCmsCommon.EnumBusiness;

namespace WeChatModel.DatabaseModel
{
    /// <summary>
    /// project table in MySQL5
    /// 项目表
    /// </summary>
    [Table("project")]
    public class ProjectModel
    {
        /// <summary>
        /// 项目ID，主键
        /// </summary>
        [Key]
        public Int64 Id { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public String ProjectName { get; set; }

        /// <summary>
        /// 项目开始日期
        /// </summary>
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Int64 UserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 创建用户ID
        /// </summary>
        public Int64 CreateUserId { get; set; }

        /// <summary>
        /// 更新用户ID
        /// </summary>
        public Int64 UpdateUserId { get; set; }

        /// <summary>
        /// 是否删除 0:未删除 1:已删除
        /// </summary>
        public FlagEnum IsDel { get; set; }

        /// <summary>
        /// 是否有效 0:无效 1:有效
        /// </summary>
        public FlagEnum IsValid { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public Int32 Sort { get; set; }
    }
}